[body]
	<link rel="stylesheet" type="text/css" href="/fancybox/jquery.fancybox-1.3.1.css" media="screen" />
	<script type="text/javascript" src="/fancybox/jquery.fancybox-1.3.1.js"></script>
  <script>
    $(document).ready(function(){
      //confirm_js
      $('.confirm_js').click(function(){
        var pid=$(this).attr('rel');
        var pval=$(this).is(':checked');
        var req = new JsHttpRequest();
				req.onreadystatechange = function() {
					if (req.readyState == 4) {
						if(req.responseJS) {
							if(req.responseJS.content=='exists'){
								$('#reg_email').siblings('span').html('<span class="err_err">User with this e-mail exists. <a href="#" onclick="make_otp(); return false;">Login&nbsp;with&nbsp;email?</a></span>');
								$('#reg_email').unbind('keydown').keydown(function(){
					        $('#reg_email').siblings('span').html('');
								});
								$('#reg_email').unbind('blur').blur(function(){
					        $('#reg_email').change();
								});
							}
						}
						if(req.responseText!='') console.log(req.responseText);
					}
				}
			  req.open(null, '/ajax/', true);
			  req.send( { mode: 'conf_ex', id:pid, val:pval } );

      });
      
      $('.ex_link').fancybox(
				{
				  padding:10,
					width:800,
					height:600,
					autoDimensions:false,
					autoScale:false
				}
			);
    });
    
  </script>
    <div id="print_header" class="print_only">
			<img src="/img/logo.jpg">
			<hr size="1">
		</div>
		<div class="tday_wrapper">
				<h2>Your Resistance Training Routine, <span>{function:traning_date }</span>:</h2>
				<table width="100%" class="round_table" cellpadding="0" cellspacing="0">
				  <thead class="traning_header">
				    <tr>
				    	<td colspan="2">Exercises</td>
				    	<td>Reps</td>
				    	<td>Sets</td>
				    	<td>Rest</td>
				    	<td><span class="no_print">Check</span></td>
				    	<td width="300">Remarks</td>
				    </tr>
				    <tr>
				      <td colspan="7" style="padding:0; ">
				        <img class="bottom_shadow" src="/img/bot_bg.png" >
							</td>
				    </tr>
				  </thead>
				  <tbody>
				   {body}
				  </tbody>
				  <tfoot>
				    <tr>
				      <td colspan="7" style="padding:0; ">
				        <img class="bottom_shadow" src="/img/top_bg.png" >
							</td>
				    </tr>
						<tr>
				      <td></td>
				      <td></td>
				      <td></td>
				      <td></td>
				      <td></td>
				      <td></td>
						</tr>
				  </tfoot>
				</table>
			</div>
    <div style="padding:20px;" class="no_print">
      <span class="dates">
        <a href="/members/mytraining">Back to the weeks` list</a>
      </span><br>
      <span class="dates">
        <a href="/members/mytraining/week/{prd_id}">Back to the week</a>
      </span>
    </div>
[line]
 	<tr>
    <td><img src="/img/exs/{libe_id}.jpg" class="ill"></td>
    <td><a href="/exercise/{libe_id}" class="big ex_link">{libe_name}</a></td>
    <td>{pre_repl}</td>
    <td>{pre_steps}</td>
    <td>{pre_rest}</td>
    <td>	{pre_time} </td>
    <td class="comment">	{pre_comm} </td>
	</tr>
[separator]
	<tr>
	  <td colspan="7" style="padding:0;">
	    <div style="border-top:1px dotted #777777"></div>
		</td>
	</tr>
[not_pre_time]
[pre_time]
    <span class="no_print cbox">
      <input type="checkbox" name="check_1" value="1" {pre_u_confirm} class="confirm_js" rel="{pre_id}">
    </span>
[pre_time_future]
		future
[DELpre_time_past]
    <span class="no_print cbox {pre_u_confirm}"></span>
[pre_u_confirm]
  checked
[empty]
	---
[prd_marker_done]
	<span class="check {prd_marker}">DONE</span>
[prd_marker]
	<span class="check {prd_marker}">Passed {prd_passed}%</span>
